package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.SalesRepor;
import cn.wolfcode.crm.mapper.SalesReporMapper;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.service.ISalesReporService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @program: crm
 * @description:
 * @author: Mr.chen
 * @create: 2018-07-07 21:45
 **/
@Service
public class SalesReporServiceImpl implements ISalesReporService {
    @Autowired
    private SalesReporMapper mapper;

    public void save(SalesRepor entity) {
        mapper.insert(entity);
    }

    public List<Map<String, Object>> querySaleForList(QueryObject qo) {
        return  mapper.querySaleForList(qo);
    }

}
